package com.ciis.system.relation.service;

import com.ciis.system.relation.domain.TSysUserRole;

import java.util.HashMap;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: zhangdajun
 * Date: 14-6-1
 * Time: 下午10:17
 * To change this template use File | Settings | File Templates.
 */
public interface ISysUserRoleService {

    public void save(TSysUserRole userRole) throws Exception;

    public void delete(TSysUserRole userRole) throws Exception;

    public void deleteByUId(String userId) throws Exception;

    public List<TSysUserRole> getUserRolesByUId(String userId) throws Exception;

    public List<TSysUserRole> getUserRolesByRId(String roleId) throws Exception;

    public HashMap<String,String> getRoleMapByUId(String userId) throws Exception;

}
